package com.example.therDays.ui.screens




import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.lifecycle.viewmodel.compose.viewModel
import com.example.therDays.ui.components.TopBar
import com.example.therDays.ui.components.WeatherCard
import com.example.therDays.ui.components.dailyWeather.DailyWeather
import com.example.therDays.ui.components.prediction.Prediction
import com.example.therDays.ui.vModel.HomeFrameModel



@Composable
fun HomeFrame(NavWeather:()->Unit ,vm : HomeFrameModel = viewModel()) {
    Scaffold(
        topBar = {
            TopBar()
        }) {
//        Box(modifier = Modifier.padding(it)){
//
//        }
        Column {
            WeatherCard(
                NavWeather = NavWeather
            )
            Prediction(PredictionList =vm.predictionList )
            DailyWeather(dailyWeatherList = vm.dailyWeatherList)
        }

    }
}

